package com.shyroke.daydayzhuansvc.service;

import com.shyroke.daydayzhuanapi.dto.ProjectDto;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.net.URL;

public interface IOSSService {
    void uploadImg(MultipartFile file,String path) throws Exception;

    void uploadImg(String source,String target,String reffer) throws Exception;

    String getImgUrl(String path);

    URL getImgURL(String path);

    void deleteImg(String bucketName, String img);

    void uploadFile(MultipartFile file, String sitemapPath) throws  Exception;

    InputStream getFileObj(String bucketName,String sitemapPath) throws  Exception;

    void handleImg(ProjectDto project, String reffer) throws Exception;
}
